home *** CD-ROM | disk | FTP | other *** search
- Path: news.lpr.carel.fi!usenet
- From: Ari Lukumies <aril@cmt.lpr.mail.carel.fi>
- Newsgroups: comp.lang.c++
- Subject: Re: REBOOTING?
- Date: Wed, 07 Feb 1996 16:31:22 +0200
- Organization: Carelcomp Forest
- Message-ID: <3118B7BA.6C5E@cmt.lpr.mail.carel.fi>
- References: <4f5rkk$lpt@news.cp10.es.xerox.com>
- NNTP-Posting-Host: renoir.cclahti.carel.fi
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0b6a (WinNT; I)
-
- EDB wrote:
- >
- > C/C++ code to warm boot from DOS:
- >
- > void (far *pf)() = 0xffff0000;
- > int far *magic = (int far *) 0x00400072;
- > *magic = 0x1234;
- > (*pf)();
- >
- > C/C++ code to warm boot from Windows 3.1:
- >
- > EXITWINDOWS(EW_REBOOTSYSTEM, 0);
- >
- > If you meant some other system, you're on your own...
- >
- > - Eric
-
- If you have SMARTDRV or similar running, the results of the first example may surprise
- you... :) Also, it doesn't work in V86 mode (eg. running EMM386). To see more about
- this subject, look at comp.os.msdos.programming ng. The discussion has been going on
- for quite some time now.
-
- Later,
- AriL
- --
- All my opinions are mine and mine alone.
-